package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.RunningGroupDO;
import org.apache.ibatis.annotations.Param;

/**
 * Created by rize on 2019/7/1.
 */
public interface RunningGroupMapper extends BaseMapper<RunningGroupDO> {

    Integer selectCountByGroupName(@Param("groupName") String groupName,@Param("runningGroupId") Long runningGroupId);

    Integer selectCountByInviteCode(@Param("inviteCode") String inviteCode,@Param("runningGroupId") Long runningGroupId);

    RunningGroupDO selectByInviteCode(@Param("inviteCode") String inviteCode);


}
